let questId = url.split("?")[1];
let writeAnswer = new Vue({
    el:"#writeAnswer",
    data:{
        answer:{},
    },
    methods:{
        saveAnswer(){

            let params = {
                questionId : questId,
                content : $("#summernote").val()
            }

            axios.post('/portal/answer/postAnswer',params)
                .then(result=>{
                    let r = result.data

                    console.log(r)
                    if(r.code == CREATED){
                        let newAnswer = r.data
                        answersApp.answers.unshift(newAnswer)

                    }

                })
        }
    }

})